//
//  PHTextView.h
//  LuQu
//
//  Created by xp on 2017/9/19.
//  Copyright © 2017年 mingthink. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface PHTextView : UITextView
{
    NSInteger currentLine;//文本的行数
}
/**
 *  标语文本
 */
@property(nonatomic,retain)NSString *placeholder;
/**
 *  标语文本的颜色
 */
@property (nonatomic, strong) UIColor *placeholderColor;

@property(strong,nonatomic) UIFont *placeholderFont;
/**是否计数*/
//@property (nonatomic, assign) BOOL showCount;
/**
 *  设置最大行数
 */
@property (nonatomic, assign) NSInteger maxLines;
@property (nonatomic, assign) NSInteger maxCount;
//占位符居中
@property (nonatomic, assign) BOOL horizontalCenterPlaceholder;
@property (nonatomic, assign) BOOL verticalCenterPlaceholder;
@property(nonatomic,assign,readonly)NSInteger textLines;
//@property (nonatomic,assign) CGRect placeHolderRect;
/**
 *  标语文本的偏移量
 */
//@property (nonatomic, assign) UIEdgeInsets textInsets;
/**行数改变了的通知*/
@property(nonatomic,copy) void(^changeLineBlock)(NSInteger lines);
@end
